package io.unicorn.modules.water.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.unicorn.common.utils.PageUtils;
import io.unicorn.common.utils.Query;

import io.unicorn.modules.water.dao.TDevicesTypeDao;
import io.unicorn.modules.water.entity.TDevicesTypeEntity;
import io.unicorn.modules.water.service.TDevicesTypeService;


@Service("tDevicesTypeService")
public class TDevicesTypeServiceImpl extends ServiceImpl<TDevicesTypeDao, TDevicesTypeEntity> implements TDevicesTypeService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<TDevicesTypeEntity> page = this.page(
                new Query<TDevicesTypeEntity>().getPage(params),
                new QueryWrapper<TDevicesTypeEntity>()
        );

        return new PageUtils(page);
    }

}
